<!--
 * @Author Malred
 * @Date 2025-06-02 06:18:53
 * @Description 
 -->
<!-- BaseSearchDate.vue -->
<template>
  <div class="search-item">
    <label v-if="label">{{ label }}</label>
    <el-date-picker
        v-model="value"
        type="date"
        placeholder="选择日期"
        value-format="YYYY-MM-DD"
    />
  </div>
</template>

<script setup>
import { defineProps, defineModel } from 'vue';

defineProps({
  label: String
});

const value = defineModel();
</script>


<style scoped>
.search-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  /*flex-wrap: wrap;*/
  gap: 8px;
}
</style>
